<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>

<script type="text/javascript">
	KindEditor.ready(function(K) {
		K.create("textarea[name='${param.textareaName}']", {
			cssPath : '${path}/mc/common/kindeditor/plugins/code/prettify.css',
			uploadJson : '${path}/mc/common/kindeditor/jsp/upload_json.jsp;jsessionid=<%=pageContext.getSession().getId() %>?module=${param.module}&r=<%=new Random().nextInt() %>',
			fileManagerJson : '${path}/mc/common/kindeditor/jsp/file_manager_json.jsp;jsessionid=<%=pageContext.getSession().getId() %>?module=${param.module}&r=<%=new Random().nextInt() %>',
			allowFileManager : true,
			/* afterCreate : function() {
				var self = this;
				$('#infoForm').submit(function(){
					self.sync();
				});
			} */
			afterBlur: function(){
				this.sync();
			}
		});
	});
</script>
